home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Doonesbury Toonscapes
/
Doonesbury Toonscapes - Disc 2.iso
/
setup
/
uninst.inf
< prev
Wrap
INI File
|
1995-10-13
|
7KB
|
254 lines
DefineVariables
Text [ProductName] := Doonesbury Flashbacks
Text [ItemName] := Doonesbury Flashbacks
Text [MainExeName] := DA.EXE
Text [ProductIniFile] := DA.INI
Text [ProgGrpName] := Doonesbury Flashbacks
Text [ProgGrpFileName] := DOONESBU.GRP
Text [SWTWLogo] := BlankString
Text [IconName] := DA.ICO
Text [BitmapName] := TITLE.BMP
Directory [WinGDir] := WING
Directory [SetupDir] := SETUP
Directory [SourceDir] := DA
Directory [TargetDir] := BlankString
Directory [TargetDrive] := BlankString
Number [Continue] := 1011
Text [Language] := English
Logical [Minimal] := N
Text [AreYouSureText] := Are you sure you wish to uninstall?
Text [YES_text] := Yes
Text [NO_text] := No
Text [DelteingFilesText] := Please wait...
Text [UninstallText] := Uninstall
Text [EnglishSure] := Are you sure you wish to completely remove the selected application and all it's components?
Text [EnglishYES] := Yes
Text [EnglishNO] := No
Text [EnglishDeleting] := Please wait...
Text [EnglishUninstall] := Uninstall
Text [FrenchSure] := Voulez-vous supprimer dΘfinitivement l'application sΘlectionnΘe et tous ses composants ?
Text [FrenchYES] := Oui
Text [FrenchNO] := Non
Text [FrenchDeleting] := Veuillez patienter...
Text [FrenchUninstall] := DΘsinstaller
Text [GermanSure] := Sind Sie sicher, da▀ Sie die gewΣhlte Anwendung und ihre ganzen Komponenten vollstΣndig entfernen wollen?
Text [GermanYES] := Ja
Text [GermanNO] := Nein
Text [GermanDeleting] := Bitte warten...
Text [GermanUninstall] := Entfernen
Text [SpanishSure] := ┐Estß seguro de querer eliminar la aplicaci≤n seleccionada y todos sus componentes?
Text [SpanishYES] := Sφ
Text [SpanishNO] := No
Text [SpanishDeleting] := Espere, por favor...
Text [SpanishUninstall] := Desinstalar
Text [ItalianSure] := Si desidera eliminare completamente l'applicazione selezionata e tutti i suoi componenti?
Text [ItalianYES] := S∞
Text [ItalianNO] := No
Text [ItalianDeleting] := Attendere...
Text [ItalianUninstall] := Disinstalla
Text [WhichLanguage] :=
Logical [IsWin95] := N
Logical [IsWinNT] := N
EndDefineVariables
SetDefaultBitmap Off
SetInstallModeTo Install
SetTraceMode Off
SetExitConfirmationPrompt off
SetPopupBorderTo double
SetReplacementInquiry Off
Do WhichWindows
Do CheckForMinimal
Do SetInstallDir
Do GetLanguageIndex
Do SetLanguage
SetTopLineTo [ProductName] [UninstallText]
ShowWindow Maximize
Do CheckIfSure
SoLong Quietly
Procedure CheckForMinimal
;; In case of Minimal install
If FileExists [WindowsDirectory]\DA.INI
[Minimal] := Y
EndIf
EndProcedure
Procedure WhichWindows
If WIN32
If WindowsVersion >= 3.95
[IsWin95] := Y
Else
If WindowsVersion >= 3.1
[IsWinNT] := Y
[IsWin95] := N ;; Windows NT
EndIf
Endif
Else
[IsWin95] := N ;; Win 3.1
EndIf
EndProcedure
Procedure SetInstallDir
If [IsWin95]
[String10] := C:\Program Files\[ProductName]
Else
[String10] := C:\DF
EndIf
If FileExists [InstallFromDirectory]\AUTOHD.INI
ClearArray [Array1]
[Array1][1] := Uninstall
[Array1][2] := path
[Array1][3] := [String10]
[Array1][4] := [InstallFromDirectory]\AUTOHD.INI
GetPrivateProfileString Using [Array1]
[InstallationDirectory] := [Array1][5]
Else
Dialog BlackOnLightGray
AUTOHD.INI Not Found!
Unable to complete Uninstall.
EndDialog
EndIf
EndProcedure
Procedure UNINSTALL
If DirectoryExists [InstallationDirectory]
TextBox BlackOnLightGray
[DelteingFilesText]
EndTextBox
If [IsWin95]
Run [InstallationDirectory]\REGISTRY.EXE [InstallationDirectory]\UFLASH.RGS
EndIf
If DirectoryExists [InstallationDirectory]
DeleteFiles from [InstallationDirectory]
*.*
EndDeleteFiles
DeleteDirectory [InstallationDirectory]
EndIf
EndIf
If [Minimal] ;;Minimal case
DeleteFiles from [WindowsDirectory]
DA.INI
EndDeleteFiles
EndIf
If [IsWin95]
[String1] := [WindowsDirectory]\Start Menu\Programs\[ProductName]
LFNGetShortPathName [String1] [String2]
If [String2] <> BlankString
ProgramManagerDDE
ShowGroup([ProgGrpName],2)
DeleteItem([ProgGrpName])
DeleteGroup([ProgGrpName])
EndProgramManagerDDE
EndIf
Else
If [IsWinNT]
ProgramManagerDDE
DeleteGroup([ProgGrpName])
EndProgramManagerDDE
Else
If FileExists [WindowsDirectory]\[ProgGrpFileName]
ProgramManagerDDE
DeleteGroup([ProgGrpName])
EndProgramManagerDDE
EndIf
EndIf
EndIf
EndProcedure
Procedure CheckIfSure
DialogBox 200 60 UseHeader "Doonesbury Flashbacks" Returns [Continue] BlackOnLightGray ModalFrame
CText @xy(0,10) 200 70 [AreYouSureText]
DefPushButton @xy( 30, 35) 40 16 [YES_text] 1012
PushButton @xy(125, 35) 40 16 [NO_text] 1011
EndDialogBox
ClearScreen
if [Continue] = 1012
Do UNINSTALL
Else
SoLong
EndIf
EndProcedure
Procedure GetLanguageIndex
If FileExists [InstallFromDirectory]\AUTOHD.INI
ClearArray [Array1]
[Array1][1] := Language
[Array1][2] := which
[Array1][3] := English
[Array1][4] := [InstallFromDirectory]\AUTOHD.INI
GetPrivateProfileString Using [Array1]
[Language] := [Array1][5]
EndIf
EndProcedure
Procedure SetLanguage
If [Language] = English
[DelteingFilesText] := [EnglishDeleting]
[AreYouSureText] := [EnglishSure]
[YES_text] := [EnglishYES]
[NO_text] := [EnglishNO]
[UninstallText] := [EnglishUninstall]
EndIf
If [Language] = French
[DelteingFilesText] := [FrenchDeleting]
[AreYouSureText] := [FrenchSure]
[YES_text] := [FrenchYES]
[NO_text] := [FrenchNO]
[UninstallText] := [FrenchUninstall]
EndIf
If [Language] = German
[DelteingFilesText] := [GermanDeleting]
[AreYouSureText] := [GermanSure]
[YES_text] := [GermanYES]
[NO_text] := [GermanNO]
[UninstallText] := [GermanUninstall]
EndIf
If [Language] = Spanish
[DelteingFilesText] := [SpanishDeleting]
[AreYouSureText] := [SpanishSure]
[YES_text] := [SpanishYES]
[NO_text] := [SpanishNO]
[UninstallText] := [SpanishUninstall]
EndIf
If [Language] = Italian
[DelteingFilesText] := [ItalianDeleting]
[AreYouSureText] := [ItalianSure]
[YES_text] := [ItalianYES]
[NO_text] := [ItalianNO]
[UninstallText] := [ItalianUninstall]
EndIf
EndProcedure
EndScript